cmake_minimum_required(VERSION 2.8)
project(opencv)
set(CMAKE_BUILD_TYPE "Debug")
# 添加c++ 11标准支持
set(CMAKE_CXX_FLAGS "-std=c++11 -O2")

# 寻找OpenCV库
find_package(OpenCV REQUIRED)

add_executable(opencv main.cpp ../e_image_/main.cpp)
target_link_libraries(opencv ${OpenCV_LIBS})
